﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Data;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDp_Prevemeas_IniBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDp_Prevemeas_Ini;

        void Remove(IDp_Prevemeas_Ini entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDp_Prevemeas_Ini;


        /// <summary>
        /// 提取主要病害
        /// </summary>
        /// <param name="rdwayid"></param>
        void Insert_ASP(string anniname, string analy_year);
        //更新初选措施   已经无效,找到更好的方法
        //void SetMEAS_INI(string rdwaryid, string mainsegid, string meas_ini);

        /// <summary>
        /// 病害表中提取所有病害
        /// </summary>
        /// <param name="segid"></param>
        /// <returns></returns>
        DataTable GetMainSegid_ASP(string segid); 
        /// <summary>
        /// 自动选取初选措施
        /// </summary>
        /// <param name="rdwayid"></param>
        void EditMEAS_INI(string anniname, string analy_year);

    }
}
